class DialogLogin extends gf.BaseDialog {
    private btnLogin: fgui.GButton;
    public onInit(): void {
        super.onInit();
        this.btnLogin = this.getControl<fgui.GButton>("btnLogin");
        this.btnLogin.addClickListener(this.onBtnLoginClick, this);
    }
    public onResume(): void { }
    private onBtnLoginClick(): void {
        Game.SceneMgr.changeScene(GameScene);
        Game.DialogMgr.destroyDialog(UISettings.dlgLogin);
    }
    public onPause(): void { }
    public onDestroy(): void {
        this.btnLogin.removeClickListener(this.onBtnLoginClick, this);
    }
}